package doantotnghiep.dao;

import java.util.ArrayList;
import java.util.List;

import doantotnghiep.model.Customer;
import doantotnghiep.model.PurchaseOrder;
import doantotnghiep.model.PurchaseOrderDetail;

public interface PurchaseOrdeDao {

	public void addPurchase(PurchaseOrder purchaseOrder);

	public List<Customer> getAllCustomer();

	public List<PurchaseOrder> getAllPurchase();

	public void deletePurchase(int id);

	public int getCurrentPurchaseID();

	public void addOrderDetail(PurchaseOrderDetail purchaseOrderDetail);

	public List<PurchaseOrderDetail> getAllOrderDetailByID(int id);

	public void deleteOrderDetail(int id);

	PurchaseOrderDetail getOrderDetailByID(int id);

	public ArrayList<PurchaseOrderDetail> getListOrderDetailByID(int id);

	public List<PurchaseOrder> getAllPurchaseNotExported(String date);

	public List<PurchaseOrder> getAllPurchaseByOrderDate(String orderDate);
}

